//
//  UserWalletExchange.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2019/1/18.
//  Copyright © 2019 guoshikeji. All rights reserved.
//

#import "UserWalletExchangeRequest.h"

@implementation UserWalletExchangeRequest

- (HttpRequestMethod)requestMethod {
    return GET;
}
- (NSString *)relativelyUrl {
    return V1_Flow_Wallet_Exchange;
}
- (BOOL)success:(NSURLSessionDataTask *)task data:(id)obj {
    BOOL success = [super success:task data:obj];
    if (success) {
        UserWalletExchangeResponse *resp = [UserWalletExchangeResponse yy_modelWithJSON:obj];
        if (self.requestSuccessed) {
            self.requestSuccessed(resp, nil);
        }
    }
    return success;
}

@end
